package com.java.tutorials.jdk7.fileattribute;


import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
/**
 * Created by xuzhike on 2016/1/24.
 * http://www.java2s.com/Code/Java/JDK-7/ObtainingasingleattributeatatimeusingthegetAttributemethod.htm
 * Obtaining a single attribute at a time using the getAttribute method
 */
public class ObtainingAttributeTest {
    public static void main(String[] args) throws Exception {
        Path path = FileSystems.getDefault().getPath("e:/yjbWechat.txt");
        System.out.println(Files.getAttribute(path, "size"));
    }
}
